package com.soft2018;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        //声明变量

        //提示用户输入
        System.out.println("请输入本月销售量：");
        //创建扫描器对象，用来监听控制台输入
        Scanner in = new Scanner(System.in);
        //直接输入浮点型到变量中
        float yourSales = in.nextFloat();

        //创建最低销售额 target
        float target = 500000;
        // 创建输出的字符串变量
        String performance = "";
        // 创建 奖金
        float bonus=0;
        // 创建 实际工资变量
        float salary=0;

        // 进入条件分支
        if(yourSales>=2*target)
        {
            performance = "表现优异！";
            bonus = 1000;
            //salary = 3000 + bonus;
        }
        else if(yourSales>=1.5*target)
        {
            performance = "表现良好！";
            bonus = 500;
        }
        else if(yourSales>=target)
        {
            performance = "表现一般！";
            bonus = 100;
        }
        else
        {
            performance = "你被炒了！";
            bonus = 0;
        }

        System.out.println(performance);
        salary = 3000 + bonus;
        System.out.println("你这个月的工资为："+salary);
    }
}
